package com.webull.information.center.carwler.common.model;

import java.util.Date;

public class SpeclNewsPlan {

	private Integer id;// ` int(11) NOT NULL AUTO_INCREMENT,
	private String target;// ` varchar(50) NOT NULL DEFAULT '' COMMENT
							// '目标(tickerId,exchangeId,regionId等)',
	private String targetExt;// ` varchar(50) DEFAULT NULL COMMENT 'target说明',
	private String source;// ` varchar(50) NOT NULL COMMENT '采集来源，和news相同',
	private Integer mode;// ` int(2) NOT NULL COMMENT 'mode，',
	private String cron;// ` varchar(50) NOT NULL COMMENT 'cron表达式',
	private String branch;
	private Integer carshPeriod;// ` int(4) DEFAULT NULL COMMENT '允许超时时间（单位，分钟）',
	private Date execTime;// timestamp NULL DEFAULT NULL COMMENT '当前执行开始的时间',
	private Integer execStat;// ` int(2) NOT NULL,
	private Date nextTime;// timestamp NULL DEFAULT NULL COMMENT '下一次开始 执行时间',
	private Integer execCount;// 执行次数
	private Date createTime;// timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
	private Date updateTime;// timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
								// COMMENT '修改时间',
	private Boolean del;// ` tinyint(2) NOT NULL DEFAULT '0' COMMENT '1:已删，0:正常，Java:boolean',

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public String getTargetExt() {
		return targetExt;
	}

	public void setTargetExt(String targetExt) {
		this.targetExt = targetExt;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public Integer getMode() {
		return mode;
	}

	public void setMode(Integer mode) {
		this.mode = mode;
	}

	public String getCron() {
		return cron;
	}

	public void setCron(String cron) {
		this.cron = cron;
	}

	public Integer getCarshPeriod() {
		return carshPeriod;
	}

	public void setCarshPeriod(Integer carshPeriod) {
		this.carshPeriod = carshPeriod;
	}

	public Date getExecTime() {
		return execTime;
	}

	public void setExecTime(Date execTime) {
		this.execTime = execTime;
	}

	public Integer getExecStat() {
		return execStat;
	}

	public void setExecStat(Integer execStat) {
		this.execStat = execStat;
	}

	public Date getNextTime() {
		return nextTime;
	}

	public void setNextTime(Date nextTime) {
		this.nextTime = nextTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Boolean getDel() {
		return del;
	}

	public void setDel(Boolean del) {
		this.del = del;
	}

	public Integer getExecCount() {
		return execCount;
	}

	public void setExecCount(Integer execCount) {
		this.execCount = execCount;
	}

	public String getBranch() {
		return branch;
	}

	public void setBranch(String branch) {
		this.branch = branch;
	}

	/**
	 * 当前 执行状态
	 * @author smj
	 * @Date 2017年7月21日下午3:41:36
	 * @version 1.0
	 *
	 */
	public static class ExecStat {
		public static final Integer start = 0; // 待启动
		public static final Integer doing = 1;// 正在运行
		public static final Integer done = 2;// 运行完成
		public static final Integer error = 3;// 运行异常
	}
}

